package com.powernode.service;

import com.github.pagehelper.Page;
import com.powernode.common.Result;
import com.powernode.domain.Customer;
import com.powernode.dto.CustomerDto;

public interface CustomerService{


    int deleteByPrimaryKey(Integer id);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    /**
     * 客户的分页查询
     * @param customerDto
     * @return
     */
    Page<Customer> queryForPage(CustomerDto customerDto);

    void changeCustomerUser(Integer userId, Integer[] customerIds);
}
